package
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.display.StageScaleMode;
	
	[SWF(width=600,height=450,frameRate=24,backgroundColor=0x000000)]
	public class InfoBox extends Sprite
	{
		private var infodata:InfoData;
		private var infoview:InfoView;
		private var viewWidth:Number = 500;
		private var viewHeight:Number = 350;		
		private var UIurl:String = "../UI/UI.swf";
		private var XMLurl:String = "xmldata2.xml";
		
		public function InfoBox()
		{
			stage.scaleMode=StageScaleMode.NO_SCALE;
			infodata = new InfoData(XMLurl);
			infoview = new InfoView(UIurl,infodata);
			infoview.x = (stage.stageWidth - viewWidth)/2;
			infoview.y = (stage.stageHeight - viewHeight)/2;
			this.addChild(infoview);
		}
	}
}